<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./echarts.min.js"></script>
</head>
<body>
    <div id="main" style="width: 500px; height: 400px;">
        <span>上周🎈</span>
    </div>
    <script type="text/javascript">
        var myChart = echarts.init(document.getElementById('main'));
        var option = {
            title: {
                text: '环比'
            },
            tooltip: {
                trigger: 'axis'
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            legend: {
                data: ['上周', '本周']
            },
            xAxis: {
                type: 'category',
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri']
            },
            yAxis: {
                 type: 'value'
            },
            series: [
                {
                    name: '上周',
                    type: 'line',
                    data: [50, 30, 45, 52, 95, 65, 85]
                },
                {
                    name: '本周',
                    type: 'line',
                    data: [60, 55, 42, 35, 60, 75, 100]
                }
            ]
        };
        myChart.setOption(option);
    </script>
</body>
</html>